package com.manager.zq.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CusIdDao {

    /**
     * 获取销售下的所有客户id
     * @param sellerId
     * @return
     */
    @Select("select id from customer where seller_id=#{sellerId}")
    public Integer[] getCusIdBySeller(Integer sellerId);

    /**
     * 获取所有新客户编号
     * @return
     */
    @Select("select id from customer where seller_id is null ")
    public Integer[] getNewCus();
}
